package kumiyunwii.kumi.viewmodel;

public class ApiError extends ApiResult{
    private String message;


    public ApiError(String message, int status) {
        super(status);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 没通过身份验证
     *
     * @return ApiError
     */
    public static ApiError unAuthenticate() {
        return new ApiError("Authenticate Error", 403);
    }

    public ApiError(String message){
        super(0,message);
    }
    public ApiError(int status,String message){super(status,message);}
}

